repo: Fix crash without SELinux policy enabled during commit
authorColin Walters <walters@verbum.org>
Thu, 20 Feb 2014 19:19:49 +0000 (14:19 -0500)
committerColin Walters <walters@verbum.org>
Thu, 20 Feb 2014 19:19:49 +0000 (14:19 -0500)
src/libostree/ostree-repo-commit.c

index 1b3136dee23d77594dfa80ae648d3e634367679c..0e14e4c1686268c1f833b26f19fa97bedff0b94f 100644 (file)
@@ -1709,7 +1709,7 @@ get_modified_xattrs (OstreeRepo                       *self,
         goto out;
     }
 
-  if (modifier->sepolicy)
+  if (modifier && modifier->sepolicy)
     {
       gs_free char *label = NULL;